<div class="span10">
          <div class="row-fluid">
            <div class="span12 box">
            <?php echo (isset($tips))?$tips:'';?>
                <div class="box-head">
                    <h3><i class="icon-white icon-user" style="margin-top: 7px;"></i> 支付中心</h3>
                </div>
                <style>.dataTables_paginate{text-align: right;padding-right: 150px;}blockquote{margin: 0;}blockquote span{margin: 0 20px;}blockquote span font{font-size:25px;color:red;font-weight: bold;}</style>
                <script type="text/javascript">
                var dataConfig1 = {
        				"iDisplayLength":5,
        				"sDom": "t<'row-fluid'p>",
        				"oLanguage": {
        							"oPaginate": {
        										"sPrevious": " 上一页 ",
        										"sNext":     " 下一页 "
        									}
        							}
        				};
				$(function(){
					if($('#datatable tbody tr').length > 5){
						$('#datatable').dataTable(dataConfig1);
					}
				});
                </script>
                <div class="box-content">
                    <div class="content-inner">
                    <form name="profile" onSubmit="return formVerific()" id="pay_form" class="form-horizontal" action="<?php echo site_url('member/order_center/doPay'); ?>" enctype="multipart/form-data"  method="post">
                        				<fieldset>
                        <div class="content-settings">
                        			<table class="table table-bordered table-striped" id="datatable">
                        				<thead>
                        					<tr>
                        						<th>订单内容</th>
                        						<th>订单金额</th>
                        					</tr>
                        				</thead>
                        				<tbody>
                        				<?php $prince_num = 0; foreach($order_data as $k=>$v):;?>
                        					<input type="hidden" name="order_id[]" value="<?php echo $k;?>" />
                        					<input type="hidden" name="shop_type[]" value="<?php echo $v['shop_type'];?>" />
                        					<?php foreach($v['info'] as $i=>$j):;?>
                        					<tr>
                        						<td><?php echo $j['order_info'];?></td>
                        						<input type="hidden" name="order_info[<?php echo $j['id'];?>]" value="<?php echo $j['order_info'];?>" />
                        						<td>￥<?php $prince_num+=$j['prince']; echo $j['prince'];?></td>
                        					</tr>
                        					<?php endforeach;?>
                        				<?php endforeach;?>
                        				</tbody>
                        			</table>
                        			<div style="height: 1px;margin: 20px 0px 15px 0px;overflow: hidden;background-color: #e5e5e5;border-bottom: 1px solid #ffffff;width: 100%;"></div>
                        			<style>
                        			#pay_form fieldset{text-align: right;}
                        			#pay_form .control-group{padding-right: 25px;}
                        			#pay_form span{margin-right: 20px;}
                        			#pay_form font{font-size: 20px;color: rgb(233, 21, 10);font-weight: bold;padding: 0 5px;}
                        			</style>
                        			<script type="text/javascript">
                        			var shopPayNum = <?php echo $prince_num; ?>;
                        			$(function(){
//                            			$('#score_pay_btn .btn').click(function(){
//                                			var btn_type = $(this).html();
//                                			var now_pay_score = $('input[name=pay_score]').val();
//                                			var score_num = $('#my_score_num').html();
//                                			if(score_num == 0){
//                                    			alert(0);
//                                			}
//                                		});
										$('#do_pay_num').html('￥'+shopPayNum);
										$('input[name=do_pay_num]').val(shopPayNum);
                            		});
                            		function formVerific()
                            		{
                                		if($('#tradecode').val() == ''){
                                    		$('#tradecode').parents('.control-group').addClass('error');
                                    		$('#tradecode').after('<span class="help-inline">输入交易安全码来完成此次支付</span>').click(function(){
                                    			$('#tradecode').parents('.control-group').removeClass('error');
                                    			$('#tradecode').siblings('span').remove();
                                        	});
                                    		return false;
                                		}
                            		}
                        			</script>
                                             	<div class="control-group"><span>可用余额:<font>￥<?php echo $userInfo['fund']; ?></font></span><span>锁定金额:<font>￥<?php echo $userInfo['lock_fund']; ?></font></span><span>账户积分:<font id="my_score_num"><?php echo $userInfo['score'];?></font></span></div>
                                             	<div class="control-group"><span><font style="font-size:14px;"><?php echo count($order_data);?></font>件商品，总商品金额:</span>￥<?php echo $prince_num; ?></div>
<!--                                                <div class="control-group">使用积分:-->
<!--                                                      	<div id="score_pay_btn" class="btn-group" style="float: right;margin-left: 30px;">-->
<!--					                                      <button class="btn" type="button">-</button>-->
<!--					                                      <input class="btn" name="pay_score" type="text" value="0" style="width: 50px;background: none;cursor: auto;" />-->
<!--					                                      <button class="btn" type="button">+</button>-->
<!--					                                    </div>-->
<!--                                                </div>-->
												<div class="control-group">
			                                        <label class="control-label" for="tradecode"><font style="font-size: 13px;">*</font>请输入交易安全码：</label>
			                                        <div class="controls" style="text-align: left;">
			                                          <input type="password" class="input-xlarge" id="tradecode" name="tradecode" <?php echo ($userInfo['tradecode'] == '')?'placeholder="未设置交易安全码" disabled':''; ?>>
			                                          <p class="help-block"><?php echo ($userInfo['tradecode'] == '')?'该账户未设置安全交易码，不能完成支付<a href="'.site_url('/member/member_center/profile').'">设置安全码？</a>':'输入账户安全码进行此次交易.<a href="'.site_url('/member/member_center/profile').'">忘记安全码？</a>'; ?></p>
			                                        </div>
			                                    </div>
                                          		<div class="form-actions">
                                          			<input type="hidden" name="do_pay_num" value="" />
                                                    <span style="font-size: 20px;font-weight: bold;">应付总额:<font id="do_pay_num"></font></span><input type="submit" value="确认支付" class="btn btn-large btn-danger" <?php echo ($userInfo['tradecode'] == '')?'disabled':''; ?> />
                                                </div>
                                             </fieldset>
                                         </form>
                        </div>
                    </div><!-- content-inner -->
                </div>
            </div>
          </div> <!-- end row -->
        </div><!--/span-->
      </div><!--/row-->